package com.blogs.message;

import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;



/**
 * @Author: xiaokai
 * @Description: 创建RabbitMQ的配置类
 * @Date: 2019/5/30
 * @Version: 1.0
 */
@Configuration
public class RabbitConfig {

    @Bean
    public Queue helloQueue(){
        return new Queue("hello");
    }


}
